import request from "@/utils/request";
export function insertOrder(data) {
  return request({
    url: "/order/insert",
    method: "post",
    data: data
  });
}
export function updateOrder(data) {
  return request({
    url: "/order/update",
    method: "post",
    data: data
  });
}
export function deleteOrder(data) {
  return request({
    url: "/order/delete",
    method: "post",
    data: data
  });
}
export function deletesOrder(data) {
  return request({
    url: "/order/deletes",
    method: "post",
    data: data
  });
}
export function enableOrder(data) {
  return request({
    url: "/order/enable",
    method: "post",
    data: data
  });
}
export function enablesOrder(data) {
  return request({
    url: "/order/enables",
    method: "post",
    data: data
  });
}
export function disableOrder(data) {
  return request({
    url: "/order/disable",
    method: "post",
    data: data
  });
}
export function disablesOrder(data) {
  return request({
    url: "/order/disables",
    method: "post",
    data: data
  });
}
export function viewOrder(params) {
  return request({
    url: "/order/view",
    method: "get",
    params: params
  });
}
export function pageOrder(params) {
  return request({
    url: "/order/page",
    method: "get",
    params: params
  });
}
export function searchOrder(params) {
  return request({
    url: "/order/search",
    method: "get",
    params: params
  });
}
